import request from "../utils/request";

// 学生查看的培训资源
export const trainingList = data => {
    return request({
        method: 'POST',
        url: '/cultivate/studentCultivate',
        data
    })
}
export const studentTrainingList = data => {
    return request({
        method: 'POST',
        url: '/cultivateTwo/studentCultivate',
        data
    })
}
//教师查看的培训资源
export const trainingAdmin = data => {
    return request({
        method: 'POST',
        url: '/cultivate/findPageCultivate',
        data
    })
}
export const trainingAdminTwo = data => {
    return request({
        method: 'POST',
        url: '/cultivateTwo/findPageCultivate',
        data
    })
}
export const trainingDeleteTwo = id => {
    return request({
        method: 'GET',
        url: '/cultivateTwo/deleteCultivate?id=' + id
    })
}
export const trainingAddTwo = data => {
    return request({
        method: 'POST',
        url: '/cultivateTwo/addCultivate',
        data
    })
}
//删除培训资源
export const trainingDelete = id => {
    return request({
        method: 'GET',
        url: '/cultivate/deleteCultivate?id=' + id
    })
}
//添加培训
export const trainingAdd = data => {
    return request({
        method: 'POST',
        url: '/cultivate/addCultivate',
        data
    })
}
